home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / fax_se1r / frmmakes.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-08-21  |  6.0 KB  |  191 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  3. Begin VB.Form frmMakeSelExtract 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Make SelfExtract Executable"
  6.    ClientHeight    =   3075
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   4950
  10.    ControlBox      =   0   'False
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   3075
  15.    ScaleWidth      =   4950
  16.    StartUpPosition =   3  'Windows Default
  17.    Begin VB.CommandButton Command5 
  18.       Caption         =   "Close"
  19.       Height          =   375
  20.       Left            =   2498
  21.       TabIndex        =   13
  22.       Top             =   2640
  23.       Width           =   1455
  24.    End
  25.    Begin VB.Frame Frame3 
  26.       Caption         =   "Under which name shall I save the compiled module?"
  27.       Height          =   675
  28.       Left            =   120
  29.       TabIndex        =   9
  30.       Top             =   1860
  31.       Width           =   4755
  32.       Begin VB.CommandButton Command4 
  33.          Caption         =   "..."
  34.          Height          =   315
  35.          Left            =   4200
  36.          TabIndex        =   11
  37.          Top             =   240
  38.          Width           =   435
  39.       End
  40.       Begin VB.TextBox Text3 
  41.          Height          =   285
  42.          Left            =   660
  43.          Locked          =   -1  'True
  44.          TabIndex        =   10
  45.          Top             =   240
  46.          Width           =   3495
  47.       End
  48.       Begin VB.Label Label3 
  49.          Caption         =   "Path:"
  50.          Height          =   255
  51.          Left            =   120
  52.          TabIndex        =   12
  53.          Top             =   300
  54.          Width           =   495
  55.       End
  56.    End
  57.    Begin VB.CommandButton Command3 
  58.       Caption         =   "Ok"
  59.       Height          =   375
  60.       Left            =   998
  61.       TabIndex        =   8
  62.       Top             =   2640
  63.       Width           =   1455
  64.    End
  65.    Begin VB.Frame Frame2 
  66.       Caption         =   "What file do you want to include with the Self-Extract Module?"
  67.       Height          =   675
  68.       Left            =   120
  69.       TabIndex        =   4
  70.       Top             =   1020
  71.       Width           =   4755
  72.       Begin VB.TextBox Text2 
  73.          Height          =   285
  74.          Left            =   660
  75.          Locked          =   -1  'True
  76.          TabIndex        =   6
  77.          Top             =   240
  78.          Width           =   3495
  79.       End
  80.       Begin VB.CommandButton Command2 
  81.          Caption         =   "..."
  82.          Height          =   315
  83.          Left            =   4200
  84.          TabIndex        =   5
  85.          Top             =   240
  86.          Width           =   435
  87.       End
  88.       Begin VB.Label Label2 
  89.          Caption         =   "Path:"
  90.          Height          =   255
  91.          Left            =   120
  92.          TabIndex        =   7
  93.          Top             =   300
  94.          Width           =   495
  95.       End
  96.    End
  97.    Begin MSComDlg.CommonDialog CommonDialog1 
  98.       Left            =   4440
  99.       Top             =   3060
  100.       _ExtentX        =   847
  101.       _ExtentY        =   847
  102.       _Version        =   393216
  103.    End
  104.    Begin VB.Frame Frame1 
  105.       Caption         =   "What's the path to the Self-Extract module? (EXE)"
  106.       Height          =   675
  107.       Left            =   120
  108.       TabIndex        =   0
  109.       Top             =   180
  110.       Width           =   4755
  111.       Begin VB.CommandButton Command1 
  112.          Caption         =   "..."
  113.          Height          =   315
  114.          Left            =   4200
  115.          TabIndex        =   3
  116.          Top             =   240
  117.          Width           =   435
  118.       End
  119.       Begin VB.TextBox Text1 
  120.          Height          =   285
  121.          Left            =   660
  122.          Locked          =   -1  'True
  123.          TabIndex        =   2
  124.          Top             =   240
  125.          Width           =   3495
  126.       End
  127.       Begin VB.Label Label1 
  128.          Caption         =   "Path:"
  129.          Height          =   255
  130.          Left            =   120
  131.          TabIndex        =   1
  132.          Top             =   300
  133.          Width           =   495
  134.       End
  135.    End
  136. Attribute VB_Name = "frmMakeSelExtract"
  137. Attribute VB_GlobalNameSpace = False
  138. Attribute VB_Creatable = False
  139. Attribute VB_PredeclaredId = True
  140. Attribute VB_Exposed = False
  141. 'If you are going to use this in a app, you must
  142. 'first contact me at aandrei@hades.ro, and you
  143. 'have to credit me on the application's box, and/or
  144. 'about box
  145. Private Sub Command1_Click()
  146. On Error GoTo UsrCancel
  147. CommonDialog1.CancelError = True
  148. CommonDialog1.Filter = "Executable Files|*.exe|"
  149. CommonDialog1.Flags = cdlOFNFileMustExist
  150. CommonDialog1.ShowOpen
  151. If CommonDialog1.FileName = "" Then Exit Sub
  152. Text1 = CommonDialog1.FileName
  153. UsrCancel:
  154. End Sub
  155. Private Sub Command2_Click()
  156. On Error GoTo UsrCancel
  157. CommonDialog1.CancelError = True
  158. CommonDialog1.Filter = "All Files|*.*|"
  159. CommonDialog1.Flags = cdlOFNFileMustExist
  160. CommonDialog1.ShowOpen
  161. If CommonDialog1.FileName = "" Then Exit Sub
  162. Text2 = CommonDialog1.FileName
  163. UsrCancel:
  164. End Sub
  165. Private Sub Command3_Click()
  166. 'check something first...
  167. If Len(Text1) = 0 Or Len(Text2) = 0 Then 'assure that the 2 textboxes are not empty
  168.     Beep
  169.     Exit Sub
  170. End If
  171. If Dir(Text1) = "" Or Dir(Text2) = "" Then
  172.     MsgBox "One or all of the files you entered do not exist!", vbCritical, "Error"
  173.     Exit Sub
  174. End If
  175. 'if everything is ok continue...
  176. AddToSelfExtract Text1, Text2, Text3
  177. MsgBox "Done!", vbInformation, "Done!"
  178. End Sub
  179. Private Sub Command4_Click()
  180. On Error GoTo UsrCancel
  181. CommonDialog1.CancelError = True
  182. CommonDialog1.Filter = "Executable Files|*.exe|"
  183. CommonDialog1.Flags = cdlOFNCreatePrompt Or cdlOFNOverwritePrompt
  184. CommonDialog1.ShowSave
  185. If CommonDialog1.FileName = "" Then Exit Sub
  186. Text3 = CommonDialog1.FileName
  187. UsrCancel:
  188. End Sub
  189. Private Sub Command5_Click()
  190. End Sub
  191.